package com.tjetc.controller;


import com.tjetc.domain.Type;
import com.tjetc.service.CarouselService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("type")
public class TypeController {
    @Autowired
    private CarouselService carouselService;
    @RequestMapping("findAllType")
    public List<Type> findAllType(){
        List<Type> list = carouselService.findAllType();
        System.out.println("list = " + list);
        return list;
    }
}
